05-Read one character from file.py.py


Sign up Free. Don't forget to check out our challenges, lessons, solve and learn series and more ...


Code Snippet

f=open("teacherbook.txt","r") #opens file with the name of teacherbook.txt
print(f.read(1))
                    

Try it yourself